{template 'member', 'header'}
<div class="layui-member-center">
	{template 'member', 'left'}
	<div class="layui-modify-memberinfo">
		<div class="layui-avatar-auto">
			<div id="myContent"> 
				<p>Alternative content</p> 
			</div>
		</div>
		<script language="javascript" type="text/javascript" src="{$phpsso_api_url}/statics/js/swfobject.js"></script>
		<script type="text/javascript">
			var flashvars = {
				'upurl':"{$upurl}&callback=return_avatar&"
			}; 
			var params = {
				'align':'middle',
				'play':'true',
				'loop':'false',
				'scale':'showall',
				'wmode':'window',
				'devicefont':'true',
				'id':'Main',
				'bgcolor':'#ffffff',
				'name':'Main',
				'allowscriptaccess':'always'
			}; 
			var attributes = {
						
			}; 
			swfobject.embedSWF("{$phpsso_api_url}/statics/images/main.swf", "myContent", "490", "434", "9.0.0","{$phpsso_api_url}/statics/images/expressInstall.swf", flashvars, params, attributes);

			function return_avatar(data) {
				if(data == 1) {
					window.location.reload();
				} else {
					alert('failure');
				}
			}
		</script> 
		<ul class="layui-avatar-list" id="avatarlist">
			{loop $avatar $k $v}
			<li>
				<img src="{$v}" height="{$k}" width="{$k}" onerror="this.src='{$phpsso_api_url}/statics/images/member/nophoto.gif'"><br />
				{L('avatar')}{$k} x {$k}
			</li>
			{/loop}
		</ul>
	</div>
</div>
{template 'member', 'footer'}